package java15;

public class Studentbiz {
	Student[] students = new Student[30];

	public void addStudent(Student stu) {
		for (int i = 0; i < students.length; i++) {
			if (students[i] == null) {
				students[i] = stu;
				break;
			}

		}

	}

	public void showStudents() {
		for (int i = 0; i < students.length; i++) {
			if (students[i] != null) {
				students[i].showInfo();
			}

		}
		System.out.println();
	}

}
